﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.SceneWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:CPPEI.Coolzon.Designtime.Metadata;assembly=CPPEI.Coolzon.Designtime.Metadata"
        xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI"
        Title="新建场景" Height="350" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded"
        Style="{DynamicResource WindowStyle}">
    <Border BorderThickness="1" BorderBrush="Gray">
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBlock" >
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Height" Value="16" />
                <Setter Property="Margin" Value="0,12" />
            </Style>
            <Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Width" Value="174" />
                <Setter Property="Height" Value="30" />
                <Setter Property="Margin" Value="3,5,0,5" />
            </Style>
            <Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="Width" Value="174" />
                <Setter Property="Height" Value="30" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="3,5,0,5" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="45*"></ColumnDefinition>
            <ColumnDefinition Width="101*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <GridSplitter Grid.ColumnSpan="2" Grid.Row="2"/>
        <TextBlock x:Name="faName" Text="名 称：" Grid.Column="0" Grid.Row="0" />
        <TextBlock x:Name="faTitle" Text="标 题：" Grid.Column="0" Grid.Row="1" />
        <TextBlock x:Name="faType" Text="是否显示在导航上：" Grid.Column="0" Grid.Row="2" />
        <TextBlock x:Name="faWidth" Text="宽度：" Grid.Column="0" Grid.Row="3" />
        <TextBlock x:Name="faHeight" Text="高度：" Grid.Column="0" Grid.Row="4" />
        <TextBlock x:Name="faSwap" Text="是否允许移动区域：" Grid.Column="0" Grid.Row="5" />

        <ui:NameTextbox x:Name="tbName" Grid.Column="1" Grid.Row="0" Text="场景1" Style="{StaticResource {x:Type TextBox}}"/>
        <TextBox x:Name="tbTitle" Grid.Column="1" Grid.Row="1" Text="场景1" />
        <ComboBox x:Name="cbShowNavigate" Grid.Column="1" Grid.Row="2" >
            <ComboBoxItem Content="是" IsSelected="True"></ComboBoxItem>
            <ComboBoxItem Content="否"></ComboBoxItem>
        </ComboBox>

        <ui:DoubleTextbox x:Name="tbWidth" Grid.Column="1" Grid.Row="3" Text="9600" Style="{StaticResource {x:Type TextBox}}"/>
        <ui:DoubleTextbox x:Name="tbHeight" Grid.Column="1" Grid.Row="4" Text="1200" Style="{StaticResource {x:Type TextBox}}" />
        <ComboBox x:Name="cbAllowSwap" Grid.Column="1" Grid.Row="5" >
            <ComboBoxItem Content="是" IsSelected="True"></ComboBoxItem>
            <ComboBoxItem Content="否"></ComboBoxItem>
        </ComboBox>

        <Grid Grid.Row="6" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}"  x:Name="btnSubmit" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" Content="确 定" Click="btnSubmit_Click" Margin="0,0,5,0"  />
            <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}"  x:Name="btnCancel" Grid.Column="1" Grid.Row="3"  HorizontalAlignment="Left" Content="取 消" Click="btnCancel_Click" Margin="5,0,0,0" />
        </Grid>
    </Grid>
    </Border>
</Window>
